home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-06-01 | 8.4 KB | 368 lines | [TEXT/EDIT] |
- ;
- ; Resource File For Basic Program
- ;
- ; some equates we'll need:
- chk equ $12 ;ascii for check mark character
- visible equ $FFFF ;TRUE boolean
- invisible equ 0 ;FALSE boolean
- nogoaway equ 0 ;FALSE boolean
- goaway equ $FFFF ;TRUE boolean
- button equ 4 ;DITL BUTTON
- chkbox equ 5 ;DITL CHECK BOX
- radio equ 6 ;DITL RADIO BUTTON
- stattext equ 8+128 ;DITL STATIC TEXT (DISABLED)
- editxtds equ 16+128 ;EDIT TEXT DISABLED
- iconitem equ 32 ICON in dialog box
- ;
- ; Signature of program
- ;
- [[ PROF,0
- TEXT #"PCMacBasic Demo Version 1.0 June 1, 1987"
- ]]
- ; Apple menu
-
- $$ MENU,1,4 Menu ID 1
- 0,0,0 Placeholders
- $FFFFFFFB enable mask - 2 disabled
- "/$14" menu title = apple char
- 2 two items in this menu
- ; item 1:
- About this program... the menu item
- 0,0 no icon, no keybd equivalent
- 0,0 no marking char, text style = plain
- ; item 2:
- -------------------- the menu item
- 0,0,0,0 no icon, no keybd, no mark, plain text
-
- ;
- ; Files menu
- ;
-
- $$ MENU,302,4 Menu ID 302
- 0,0,0 Placeholders
- $FFFFFFFF enable mask - none disabled
- Files menu title
- 1 three items in this menu
- ; item 1:
- "Quit"
- 0,0 no icon, no keybd equivalent
- 0,0 no marking char, text style = plain
-
-
- ; Edit menu
-
- $$ MENU,301,4 Menu ID 301
- 0,0,0 Placeholders
- $FFFFFFF9 enable mask - 1st & 2nd disabled
- Edit menu title
- 6 six items in this menu
- ; item 1:
- "Can't Undo" the menu item
- 0,0,0,0 no icon, no keybd equivalent no marking char, text style = plain
- ; item 2:
- "----------" the menu item
- 0,0,0,0 no icon, no keybd, no mark, plain text
- ; item 3:
- "Cut"
- 0,'X',0,0 no icon, no keybd, no mark, plain text
- ; item 4:
- "Copy" the menu item
- 0,'C',0,0 no icon, keybd, no mark, plain text
- ; item 5:
- "Paste" the menu item
- 0,'V',0,0 no icon, keybd, no mark, plain text
- ; item 6:
- "Clear" the menu item
- 0,0,0,0 no icon, keybd, no mark, plain text
-
-
- ; STOP or apple/period dialogue list
-
- $$ DITL,302,32 Dialog item list, ID = 302, ATTR=32
- 5 5 items in list
-
- ; item 1:
- 0 handle holder
- 50,175,65,190 display rectangle
- chkbox item type
- " "
-
- ; item 2:
- 0 handle holder
- 50,200,65,330 display rectangle
- StatText item type
- "Quit" the item
-
- ; item 3:
- 0 handle holder
- 50,10,65,25 display rectangle
- chkbox item type
- " "
-
- ; item 4:
- 0 handle holder
- 50,35,65,165 display rectangle
- StatText item type
- "Continue" the item
-
- ; item 5:
- 0 handle holder
- 10,10,30,400 display rectangle
- StatText item type
- "Program interrupted in line number ^1" ;the item
-
- ; fatal error dialogue list
-
- $$ DITL,400,32 Dialog item list, ID = 400, ATTR=(32)
- 5 5 items in list
-
- ; item 1:
- 0 handle holder
- 10,100,30,400 display rectangle
- StatText item type
- "Fatal program error" the item
-
- ; item 2:
- 0 handle holder
- 25,10,40,25 display rectangle
- chkbox item type
- " "
-
- ; item 3:
- 0 handle holder
- 25,35,40,165 display rectangle
- StatText item type
- "Restart" the item
-
- ; item 4:
- 0 handle holder
- 40,10,55,400 display rectangle
- StatText item type
- "Error ^0 in Line Number ^1" the item
-
- ; item 5:
- 0 handle holder
- 55,10,70,400 display rectangle
- StatText item type
- "^2" the item
-
- ; invalid keyboard entry alert list
-
- $$ DITL,301,32 Dialog item list, ID = 301, ATTR=(32)
- 3 3 items in list
-
- ; item 1:
- 0 handle holder
- 80,200,97,310 display rectangle
- button item type
- "I'm sorry !" the item
-
- ; item 2:
- 0 handle holder
- 30,70,50,455 display rectangle
- StatText item type
- "Invalid input in line number ^1" the item
-
- ; item 3:
- 0 handle holder
- 50,25,70,455 display rectangle
- StatText item type
- "Please start over from the beginning." ;the item
-
- ; 'About' Dialog List
-
- $$ DITL,300,32 Dialog item list, ID = 300, ATTR=(32)
- 3 3 items in list
-
- ; item 2:
- 0 handle holder
- 30,25,50,455 display rectangle
- StatText item type
- "About this program …" the item
-
- ; item 3:
- 0 handle holder
- 50,25,70,455 display rectangle
- StatText item type
- "This is a sample PCMacBasic program." ;the item
-
- ; item 4:
- 0 handle holder
- 70,25,90,455 display rectangle
- StatText item type
- "©MacTutor 1987, by Dave Kelly" ;the item
-
- ; 'About' Dialog Box
-
- $$ DLOG,300,32 dialog, ID = 300, ATTR=32
- 100,15,250,495 bounds rectangle
- 1 type = modal dialog box
- visible initial state
- nogoaway no close box
- 0 refcon
- 300 resc ID of DLOG's item list
- | no title
-
- ; Function Key Dialog Box
-
- $$ DLOG,501,32 dialog, ID = 501, ATTR=32
- 45,15,300,495 bounds rectangle
- 1 type = modal dialog box
- visible initial state
- nogoaway no close box
- 0 refcon
- 501 resc ID of DLOG's item list
- | no title
-
- ; Debugger Dialog Box
-
- $$ DLOG,650,32 dialog, ID = 650, ATTR=32
- 100,60,280,450 bounds rectangle
- 1 type = modal dialog box
- visible initial state
- nogoaway no close box
- 0 refcon
- 650 resc ID of DLOG's item list
- | no title
-
-
- ; invalid keyboard input alert box
-
- $$ ALRT,301,32 alert, ID = 301, ATTR=32
- 100,15,210,345 bounds rectangle
- 301 resc ID of DLOG's item list
- $7655 stages
-
- ; BASIC default Window
-
- $$ WIND,300,4 Window, id=300, attr=4
- 40,10,325,500
- 0 type of window
- visible
- goaway
- 0 refcon
- Untitled title
-
-
- ; Vertical scroll bar for WIND 300
-
- $$ CNTL,300
- 20,400,220,416
- 0 initial value
- Invisible
- 12000 max value
- 0 min value
- 16 scroll bar
- 0 refcon
- "vertical scroll bar" ;title
-
-
- ; Horizontal scroll bar for WIND 300
-
- $$ CNTL,400
- 200,20,216,400
- 0 initial value
- Invisible
- 12000 max value
- 0 min value
- 16 scroll bar
- 0 refcon
- "horizontal scroll bar" ;title
-
- ; Cursor
- $$ CURS,300,4
- $01801A70,$2648264A,$124D1249,$68099801,$88024002,$20022004,$10040808,$04080408
- $00000000,$00000000,$00000000,$00000000,$00000000,$00000000,$00000000,$00000000
- $0008,$0008
-
-
- ; Professor Mac Icon & Mask for Program Icon
- $$ ICN#,128
- $00000000,$00000000,$00000000,$00070000,$000F8000,$001FE000,$003FF800,$007FFE00
- $00FFFF00,$01FEFF00,$01FFBE00,$00FFEC00,$005FFE00,$0087FD00,$00B9E480,$00B445C0
- $00800480,$008005C0,$00A02480,$00BFE400,$009DC5DB,$00400895,$00201095,$001FE000
- $00102000,$001FE000,$00601800,$01800600,$02186100,$04C30C80,$04000080,$07FFFF80
- $00000000,$00000000,$00000000,$00070000,$000F8000,$001FE000,$003FF800,$007FFE00
- $00FFFF00,$01FFFF00,$01FFFE00,$00FFFC00,$007FFE00,$00FFFD00,$00FFFC80,$00FFFDC0
- $00FFFC80,$00FFFDC0,$00FFFC80,$00FFFC00,$00FFFDDB,$007FF895,$003FF095,$001FE000
- $001FE000,$001FE000,$007FF800,$01FFFE00,$03FFFF00,$07FFFF80,$07FFFF80,$07FFFF80
-
- ; Document Icon and mask for Document Icon
- $$ ICN#,129
- $00000000,$7FFFFF80,$403FFD40,$407FFD20,$40FFFD10,$41FFFD08,$43FFFDFC,$47FFFC04
- $4FFEFFFC,$5FFD01F4,$4FFEFE64,$47FFFFC4,$41FFFFA4,$423FFF94,$440FFE94,$4463FCBC
- $44F0F894,$44C830AC,$44000094,$4518C4AC,$457DF494,$45FFFCAC,$44FDF894,$4438E0AC
- $44000084,$43FFFF04,$47FFFF84,$4C0000C4,$518CCC24,$60000014,$7FFFFFFC,$7FFFFFFC
- $00000000,$7FFFFF80,$7FFFFFC0,$7FFFFFE0,$7FFFFFF0,$7FFFFFF8,$7FFFFFFC,$7FFFFFFC
- $7FFFFFFC,$7FFFFFFC,$7FFFFFFC,$7FFFFFFC,$7FFFFFFC,$7FFFFFFC,$7FFFFFFC,$7FFFFFFC
- $7FFFFFFC,$7FFFFFFC,$7FFFFFFC,$7FFFFFFC,$7FFFFFFC,$7FFFFFFC,$7FFFFFFC,$7FFFFFFC
- $7FFFFFFC,$7FFFFFFC,$7FFFFFFC,$7FFFFFFC,$7FFFFFFC,$7FFFFFFC,$7FFFFFFC,$7FFFFFFC
-
- ; Runtime Configuration for Macintosh
-
- [[ CFIG,301
- ; .I
- ; SCREEN buffer & Update method
- ; 2 = Text buffer with attributes
- ; 6 = Text buffer without attributes
- ; 10 = Text buffer exists but don't use for automatic update
- ; 14 = Text buffer without attributes but don't update
- DC.W 2
- ; String Space growth rate
- DC.W 4096
- ; File Buffer Space
- DC.W 4096
- ; Document Width
- DC.W 640
- ; Document Height
- DC.W 400
- ; Border Width
- DC.W 40
- ; Border Height
- DC.W 30
- ; Horiz Point Scale * 16
- DC.W 16
- ; Vert Point Scale * 16
- DC.W 16
- ; Aspect *16
- DC.W 16
- ; Default font
- DC.W 4
- ; Default font size
- DC.W 12
- ; Character cell Height
- DC.W 12
- ; Character cell Width
- DC.W -1
- ]]
-
- ; File reference for program
-
- $$ FREF,128 FREF resc, ID = 128
- APPL filetype
- 0 local ID for icon list
- | no filename follows the application
-
- ; File reference for document
-
- $$ FREF,129 FREF resc, ID = 129
- TEXT filetype
- 1 local ID for icon list
- | no filename follows the application
-
- ; Bundle
-
- $$ BNDL,128 bundle resc, ID = 128
- PROF the application's signature again
- 0 ID is again 0 by convention
- 2 two resc types in the BNDL list:
- ICN#,2 map one icon list:
- 0,128 local ID 0 -> actual ID 128
- 1,129
- FREF,2 map one FREF list:
- 0,128 local ID 0 -> actual ID 128
- 1,129
-
-
-
-